﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BusinessModel
{
    public class UnitChange : BaseModel
    {
        #region Primitive Properties
        public Nullable<global::System.Int32> ProductId
        {
            get
            {
                return _ProductId;
            }
            set
            {
                if (_ProductId != value)
                {
                    _ProductId = value;
                    OnPropertyChanged("ProductId");
                }
            }
        }
        private Nullable<global::System.Int32> _ProductId;

        public Nullable<global::System.Int32> UnitId
        {
            get
            {
                return _UnitId;
            }
            set
            {
                if (_UnitId != value)
                {
                    _UnitId = value;
                    OnPropertyChanged("UnitId");
                }
            }
        }
        private Nullable<global::System.Int32> _UnitId;

        public Nullable<global::System.Int32> Level
        {
            get
            {
                return _Level;
            }
            set
            {
                if (_Level != value)
                {
                    _Level = value;
                    OnPropertyChanged("Level");
                }
            }
        }
        private Nullable<global::System.Int32> _Level;

        public Nullable<global::System.Int32> Quantity
        {
            get
            {
                return _Quantity;
            }
            set
            {
                if (_Quantity != value)
                {
                    _Quantity = value;
                    OnPropertyChanged("Quantity");
                }
            }
        }
        private Nullable<global::System.Int32> _Quantity;

        public Nullable<global::System.Int32> SalePriceUnit
        {
            get
            {
                return _SalePriceUnit;
            }
            set
            {
                if (_SalePriceUnit != value)
                {
                    _SalePriceUnit = value;
                    OnPropertyChanged("SalePriceUnit");
                }
            }
        }
        private Nullable<global::System.Int32> _SalePriceUnit;

        public Nullable<global::System.Boolean> IsWholeSale
        {
            get
            {
                return _IsWholeSale;
            }
            set
            {
                if (_IsWholeSale != value)
                {
                    _IsWholeSale = value;
                    OnPropertyChanged("IsWholeSale");
                }
            }
        }
        private Nullable<global::System.Boolean> _IsWholeSale;

        public Nullable<global::System.DateTime> ApplyDate
        {
            get
            {
                return _ApplyDate;
            }
            set
            {
                if (_ApplyDate != value)
                {
                    _ApplyDate = value;
                    OnPropertyChanged("ApplyDate");
                }
            }
        }
        private Nullable<global::System.DateTime> _ApplyDate;
        #endregion

        #region Extend Properties
        //ProductName
        private string _ProductName;
        public string ProductName
        {
            get { return _ProductName; }
            set
            {
                if (_ProductName != value)
                {
                    _ProductName = value;
                    OnPropertyChanged("ProductName");
                }
            }
        }
        //ProductCode
        private string _ProductCode;
        public string ProductCode
        {
            get { return _ProductCode; }
            set
            {
                if (_ProductCode != value)
                {
                    _ProductCode = value;
                    OnPropertyChanged("ProductCode");
                }
            }
        }
        //UnitName
        private string _UnitName;
        public string UnitName
        {
            get { return _UnitName; }
            set
            {
                if (_UnitName != value)
                {
                    _UnitName = value;
                    OnPropertyChanged("UnitName");
                }
            }
        }
        #endregion Extend Properties
    }
}
